/***************************************************************************
 *   Copyright (C) 2008,2014 by Philipp Müller                             *
 *   philipp.mueller@gmx.de                                                *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program; if not, write to the                         *
 *   Free Software Foundation, Inc.,                                       *
 *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA          *
 ***************************************************************************/

#ifndef VOMPGLOBAL_H
#define VOMPGLOBAL_H


//Media globals
/* media types form a bitmask
   so you can add them to have > 1 */
#define MEDIA_TYPE_DIR 1
#define MEDIA_TYPE_AUDIO 2
#define MEDIA_TYPE_VIDEO 4
#define MEDIA_TYPE_PICTURE 8
#define MEDIA_TYPE_UNKNOWN 0

#define MEDIA_TYPE_ALL (1+2+4+8)

#define VOMP_PROTOCOLL_VERSION 0x00000300

/*class VDRconstants
{
    VDRconstants(){};
    ~VDRconstants(){};

private:
    // Static constants for communicating with server
    const static ulong VIDEO = 1;
    const static ulong RADIO = 2;

    const static ulong CHANNEL_REQUEST_RESPONSE = 1;
    const static ulong CHANNEL_STREAM = 2;

    const static ulong headerLength = 16;
    const static ulong userDataLenPos = 12;

    const static ulong VDR_LOGIN               = 1;
    const static ulong VDR_GETRECORDINGLIST    = 2;
    const static ulong VDR_DELETERECORDING     = 3;
    const static ulong VDR_GETCHANNELLIST      = 5;
    const static ulong VDR_STREAMCHANNEL       = 6;
    const static ulong VDR_GETBLOCK            = 7;
    const static ulong VDR_STOPSTREAMING       = 8;
    const static ulong VDR_STREAMRECORDING     = 9;
    const static ulong VDR_GETCHANNELSCHEDULE  = 10;
    const static ulong VDR_CONFIGSAVE          = 11;
    const static ulong VDR_CONFIGLOAD          = 12;
    const static ulong VDR_RESCANRECORDING     = 13;  // FIXME obselete
    const static ulong VDR_GETTIMERS           = 14;
    const static ulong VDR_SETTIMER            = 15;
    const static ulong VDR_POSFROMFRAME        = 16;
    const static ulong VDR_FRAMEFROMPOS        = 17;
    const static ulong VDR_MOVERECORDING       = 18;
    const static ulong VDR_GETNEXTIFRAME       = 19;
    const static ulong VDR_GETRECINFO          = 20;
    const static ulong VDR_GETMARKS            = 21;
    const static ulong VDR_GETCHANNELPIDS      = 22;
    const static ulong VDR_DELETETIMER         = 23;
    const static ulong VDR_GETMEDIALIST        = 30;
    const static ulong VDR_GETIMAGE            = 31;
    const static ulong VDR_GETIMAGEBLOCK       = 32;
    const static ulong VDR_GETLANGUAGELIST     = 33;
    const static ulong VDR_GETLANGUAGECONTENT  = 34;
}
*/

#endif // VOMPGLOBAL_H
